package com.home.webapp.base.mapper;

import com.home.common.model.TreeNode;
import com.home.webapp.base.entity.BaseMenu;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Description: 菜单 mapper
 * Created by 王大宸 on 2020-10-05 23:28:38
 * Created with IntelliJ IDEA
 */
public interface BaseMenuMapper extends Mapper<BaseMenu> {

    /***
     * 功能说明：分页
     *
     * @author 王大宸
     * @date 2020/10/7 16:03
     * @param params 分页
     * @return java.util.List<com.home.webapp.base.entity.BaseMenu>
     */
    List<BaseMenu> page(Map<String, Object> params);

    /***
     * 功能说明：获取菜单
     *
     * @author 王大宸
     * @date 2020/10/7 15:45
     * @param
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     */
    List<TreeNode> zTree();


}
